package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc BffPlanWorkGroupMemberDto
 * @使用场景
 */
@Data
public class BffPlanWorkGroupMemberDto implements Serializable {

    /**
     * 虚拟组织成员ID
     */
    @ApiModelProperty("虚拟组织成员ID")
    private String virtualOrgMemberId;

    /**
     * 虚拟组织成员就职记录ID
     */
    @ApiModelProperty("虚拟组织成员就职记录ID")
    private String virtualOrgInductionRecordId;

    /**
     * 身份人员编号
     */
    @ApiModelProperty("身份人员编号")
    private String roleMemberCode;

    /**
     * 个人账号
     */
    @ApiModelProperty("个人账号")
    private String userId;

    /**
     * 真实头像
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 备注首位字母
     */
    @ApiModelProperty("备注首位字母")
    private String firstLetter;

    /**
     * 组内职务名称
     */
    @ApiModelProperty("组内职务名称")
    private String virtualOrganizationPosition;

    /**
     * 角色标识
     */
    @ApiModelProperty("角色标识")
    private String roleCode;

    /**
     * 是否负责人 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否负责人")
    private String isPersonCharge;

    /**
     * 是否管理员 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否管理员")
    private String isAdmin;

    /**
     * 排序
     */
    @ApiModelProperty("排序")
    private Long orderNumber;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffPlanWorkGroupMemberDto that = (BffPlanWorkGroupMemberDto) o;
        return virtualOrgMemberId == that.virtualOrgMemberId && virtualOrgInductionRecordId == that.virtualOrgInductionRecordId && roleMemberCode == that.roleMemberCode && userId == that.userId && userFace == that.userFace && nickName == that.nickName && idCardName == that.idCardName && firstLetter == that.firstLetter && virtualOrganizationPosition == that.virtualOrganizationPosition && roleCode == that.roleCode && isPersonCharge == that.isPersonCharge && isAdmin == that.isAdmin && orderNumber == that.orderNumber;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), virtualOrgMemberId, virtualOrgInductionRecordId, roleMemberCode, userId, userFace, nickName, idCardName, firstLetter, virtualOrganizationPosition, roleCode, isPersonCharge, isAdmin, orderNumber);
    }


}
   